use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let mut unique_elements = HashSet::new();

    for element in input_str.split(',') {
        let trimmed = element.trim();
        if !trimmed.is_empty() { 
            unique_elements.insert(trimmed);
        }
    }

    unique_elements.len()
}
